namespace Game.Common.Resources
{
    public class ReadOnlyGameMovement
    {
        readonly double _DefaultValue;

        public ReadOnlyGameMovement()
        {
            _DefaultValue = GameParameters.DefaultMovement;
        }

        public ReadOnlyGameMovement(
            double defaultValue)
        {
            _DefaultValue = defaultValue;
        }

        public ReadOnlyGameMovement(
            GameMovementBuilder movement)
        {
            _DefaultValue = movement.DefaultValue;
        }

        public GameMovement Copy(
            GameResources gameResources)
        {
            return new GameMovement(gameResources, Max);
        }

        public double Max
        {
            get { return _DefaultValue; }
        }

    }
}